import { get, post } from '@/utils/request'

export default {
  pageList: query => get('/api/admin/exam/page', query),
  titleFilter: query => get('/api/admin/exam/list/kv', query),
  edit: query => post('/api/admin/task/edit', query),
  getTaskCategorys: query => get('/api/admin/exam/select/categorys', query),
  select: id => post('/api/admin/task/select/' + id),
  deleteTask: id => post('/api/admin/task/delete/' + id),
  releaseTask: query => post('/api/admin/exam/add/', query),
  closeTask: query => get('/api/admin/exam/close/', query),
  openTask: query => get('/api/admin/exam/open/', query),
  delTask: query => get('/api/admin/exam/del/', query),
  unexamined: query => get('/api/admin/exam/list/unexamined/', query),
  editTask: query => post('/api/admin/exam/edit/', query),
  notice: query => get('/api/admin/exam/list/unexamined/notice/', query),
  noticeExamRank: id => get('/api/admin/examPaperAnswer/noticeExamRank/?examId=' + id)
}
